package jdmx.admin.service;

import jdmx.framework.service.ServiceContext;
import jdmx.framework.service.interfaces.StaticContentLoader;
import jdmx.library.helpers.TypeHelper;

public class AdminStaticContentLoader implements StaticContentLoader {

	private synchronized DaoAdmin getDaoAdmin(String entityName) {
		DaoAdmin dao = (DaoAdmin) ServiceContext.daoFactory.createInstance(entityName, TypeHelper.getObjectPackageName(this), DaoAdmin.class);
		return dao;
	}

	@Override
	public void loadStaticContent() {
		getDaoAdmin("SqlStatement").loadStaticContent();
	}
}
